package com.bj58.mis.apm.server.statistics.dto.cube;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: zhangfx
 * @create: 2018-06-19 15:24
 **/
@ApiModel(description = "Cube总体统计信息")
@Data
public class CubeStatistics {
    @ApiModelProperty(value = "cube总数量")
    private long totalCube;

    @ApiModelProperty(value = "Roc系统的Cube总数量")
    private long rocCube;

    @ApiModelProperty(value = "今日新增cube数量")
    private long todayIncrCube;

    @ApiModelProperty(value = "昨日新增cube数量")
    private long yesterdayIncrCube;


    @ApiModelProperty(value = "cube总大小")
    private long totalCubeSize;

    @ApiModelProperty(value = "今日新增cube大小")
    private long todayIncrCubeSize;

    @ApiModelProperty(value = "昨日新增cube大小")
    private long yesterdayIncrCubeSize;


    @ApiModelProperty(value = "任务执行总次数")
    private long totalRunnedCount;

    @ApiModelProperty(value = "今日新增执行次数")
    private long todayIncrRunnedCount;

    @ApiModelProperty(value = "昨日新增执行次数")
    private long yesterdayIncrRunnedCount;

    @ApiModelProperty(value = "失败次数")
    private long failedRunnedCount;


    @ApiModelProperty(value = "总查询次数")
    private long totalQueryCount;

    @ApiModelProperty(value = "慢查询次数")
    private long slowQueryCount;

    @ApiModelProperty(value = "今日新增查询次数")
    private long todayIncrQueryCount;

    @ApiModelProperty(value = "昨日新增查询次数")
    private long yesterdayIncrQueryCount;

    @ApiModelProperty(value = "今日新增慢查询次数")
    private long todayIncrSlowQueryCount;

    @ApiModelProperty(value = "昨日新增慢查询次数")
    private long yesterdayIncrSlowQueryCount;

    public long getTotalQueryCount() {
        return totalQueryCount + todayIncrQueryCount;
    }

    public long getSlowQueryCount() {
        return slowQueryCount + todayIncrSlowQueryCount;
    }
}
